package cn.snowtech.bluebox.domain;

/**
 * 应答码.
 */
public enum Result {
    R1000(1000,"成功"),
    R1001(1001,"网络故障"),
    R1002(1002,"报文格式错误"),
    R1003(1003,"数据库连接失败"),
    R1004(1004,"日期时间格式错误"),
    R1005(1005,"必要的输入参数缺失"),
    R1009(1009,"系统错误");




    private int code;
    private String message;

    Result(int index, String message) {
        this.code = index;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}